package com.lpf.decorator;

// 抽象装饰器
abstract class TextDecorator implements Text {
    protected Text decoratedText;

    public TextDecorator(Text decoratedText) {
        this.decoratedText = decoratedText;
    }

    @Override
    public void display() {
        decoratedText.display();
    }
}
